# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-service_identity
_pkgname=service_identity
pkgver=18.1.0
pkgrel=3
pkgdesc="Service identity verification for Python3"
options="!check" # No testsuite
url="https://service-identity.readthedocs.org/"
arch="noarch"
license="MIT"
depends="py3-asn1 py3-asn1-modules py3-attrs py3-characteristic py3-cryptography"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-service_identity" # Backwards compatibility
provides="py-service_identity=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="c1556e385035a8d43fd0e3960c0396b9d2536c5e3c7450b3669c8c9b8ff60b6a9d2f0282dc30c1fb46034b4abcb0ff6d74ed79f6bcc33f59035988ccaf3324d2  service_identity-18.1.0.tar.gz"
